<?php
// DATABASE
function db()
{
$conn = pg_connect("host=localhost port=5432 dbname=joe69 user=joe69 password=thomas12") or die('connection failed');
$utf8 = pg_query( $conn, "SET NAMES 'utf8'");
return $conn;
}
?>